package com.yanqu.road.entity.log.vehiclesoul;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_soul_equip", desc = "魂石穿戴日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "vehsoul_wear")
public class LogVehicleSoulEquip extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "魂石id", dataAttribute = "vehsoul_id")
    private int soulId;
    @FieldTypeAnnotation(desc = "珍兽配置id",dataAttribute = "pet_name")
    private int templateId;
    @FieldTypeAnnotation(desc = "珍兽uid", dataAttribute = "pet_id")
    private String vehicleId;
    @FieldTypeAnnotation(desc = "装备在什么门客身上，只有装备门客才有加成", dataAttribute = "vehsoul_guestid")
    private int patronsId;
    @FieldTypeAnnotation(desc = "1穿2卸3洗练", dataAttribute = "vehsoul_weartype")
    private int type;
    @FieldTypeAnnotation(desc = "变更前盘面加成", dataAttribute = "vehsoul_wearbefore")
    private String oldAdd;
    @FieldTypeAnnotation(desc = "变更后盘面加成", dataAttribute = "vehsoul_wearafter")
    private String newAdd;
    @FieldTypeAnnotation(desc = "变更前满盘加成", dataAttribute = "vehsoul_wearallbefore")
    private String oldFull;
    @FieldTypeAnnotation(desc = "变更后满盘加成", dataAttribute = "vehsoul_wearallafter")
    private String newFull;
    @FieldTypeAnnotation(desc = "如果是装备那就是装备位置", dataAttribute = "vehsoul_pos")
    private int pos;
    @FieldTypeAnnotation(desc = "当前开盘数量", dataAttribute = "vehsoul_wearopen")
    private int soulBlockSize;

    public LogVehicleSoulEquip(long userId, int soulId, int templateId, String vehicleId, int patronsId, int type, String oldAdd, String newAdd, String oldFull, String newFull, int pos, int soulBlockSize) {
        this.userId = userId;
        this.soulId = soulId;
        this.templateId = templateId;
        this.vehicleId = vehicleId;
        this.patronsId = patronsId;
        this.type = type;
        this.oldAdd = oldAdd;
        this.newAdd = newAdd;
        this.oldFull = oldFull;
        this.newFull = newFull;
        this.pos = pos;
        this.soulBlockSize = soulBlockSize;
    }

    public long getUserId() {
        return userId;
    }

}
